package v1

import (
	"github.com/gin-gonic/gin"
	"net/http"
)


func _Greed(greeter HTTPClient) gin.HandlerFunc {
	return func(ctx *gin.Context) {
		name := ctx.DefaultQuery("name", "hello")
		req := HelloRequest{
			name,
		}
		hello, _ := greeter.SayHello(ctx, req)
		ctx.JSON(http.StatusOK, gin.H{
			"msg": hello,
		})
	}
}

type HelloRequest struct {
	Name string
}

type HelloResponse struct {
	Msg string
}


